package com.cloudbroker.bcs.platform.dav.middle.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cloudbroker.bcs.platform.dav.bizapi.service.business.plugs.result.PlugsDavListData;
import com.cloudbroker.bcs.platform.dav.middle.dao.base.TenantDAOBase;
import com.cloudbroker.bcs.platform.dav.middle.entity.Plugs;

public interface PlugsDAO extends TenantDAOBase<Plugs, String>{

	List<PlugsDavListData> queryPlugsForWeb(Plugs plugs);
	
	List<Plugs> checkExist(@Param("name") String name,@Param("code") String code,@Param("link") String link);
	
	Long getMaxSort(Plugs form);
	
	void deleteAll();
	
	void updateBuyCount(Plugs plugs);
}
